import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a002(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	// 复选框 非日期
	const check_input = args[0].target;
	const check_id = check_input.getAttribute('data-feidao-id');
	const input_id = check_id.replace("check_", "");
	const input = fd.data.node.querySelector('[data-feidao-id=input_' + input_id + ']') as HTMLInputElement;
	if (check_input.checked) {
		input.value = "";
		input.setAttribute("disabled", "disabled");
	} else {
		input.removeAttribute("disabled");
	}
}
